/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.isd.pool.modelo;

import java.io.Serializable;
import javax.persistence.Embeddable;

/**
 *
 * @author ctrosch
 */
@Embeddable
public class ReservasPoolPK implements Serializable {

    private int nroPool;
    private int orden;
    private String nroCuenta;

    public ReservasPoolPK() {

    }

    public ReservasPoolPK(int nroPool, int orden, String nroCuenta) {
        this.nroPool = nroPool;
        this.orden = orden;
        this.nroCuenta = nroCuenta;
    }

    public String getNroCuenta() {
        return nroCuenta;
    }

    public void setNroCuenta(String nroCuenta) {
        this.nroCuenta = nroCuenta;
    }

    public int getNroPool() {
        return nroPool;
    }

    public void setNroPool(int nroPool) {
        this.nroPool = nroPool;
    }

    public int getOrden() {
        return orden;
    }

    public void setOrden(int orden) {
        this.orden = orden;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final ReservasPoolPK other = (ReservasPoolPK) obj;
        if (this.nroPool != other.nroPool) {
            return false;
        }
        if (this.orden != other.orden) {
            return false;
        }
        if ((this.nroCuenta == null) ? (other.nroCuenta != null) : !this.nroCuenta.equals(other.nroCuenta)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 97 * hash + this.nroPool;
        hash = 97 * hash + this.orden;
        hash = 97 * hash + (this.nroCuenta != null ? this.nroCuenta.hashCode() : 0);
        return hash;
    }

    @Override
    public String toString() {
        return "ReservasPoolPK{" + "nroPool=" + nroPool + "orden=" + orden + "nroCuenta=" + nroCuenta + '}';
    }
    
}
